package com.sun.blog.sunblog.controller;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.sun.blog.sunblog.model.User;
import com.sun.blog.sunblog.service.BlogService;

@Controller
public class ManagerController {
	@Autowired
	private BlogService blogService;
	 
	@RequestMapping(value="backManage")
	public ModelAndView blogManager(HttpSession session){
		User user = (User) session.getAttribute("user");
		Map<String, Serializable> map = new HashMap<String, Serializable>();
		map.put("me", user);
		return new ModelAndView("blogList",map);
	}
	
}
